package me.edzh.spring.bootstrap.utils.exception;

import lombok.*;

/**
 * Created by Edward on 2017/4/30 030.
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ServiceException extends RuntimeException {
    private Long code;
    private String message;

    private Throwable nestedException;

    public ServiceException(Long code, String message) {
        super();
        this.code = code;
        this.message = message;
    }
}
